dxp-ux

(0 reviews)

8gh-0o9/GET all Payments (TMF-676)

listPayment

This operation retrieves the payment history by using account number.

This operation is towards

  1. LCPR: Aria, Matrixx, CSG.
  2. Panama: Liberate

Request URL

https://[localhost]:[port]/dxp-ux/v1/{businessId}/payment
URL PARAMS
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit.Y
namevaluedescriptionrequired (mandatory-Y, optional-N, Not applicable- N/A)
client_idstringThe client_id identifying the channel. Minimum characters: 5Y(PR, PA)
client_secretstringPassword associated with the client_id. Minimum characters: 5Y(PR, PA)
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.N(PR, PA)
channelIdstringChannel to business Allowed Value : APPY(PR) N/A(PA)
lobstringThe Line of Business Identifier Allowed ENUM values: FIXED, PREPAID, POSTPAIDY (PR. For Matrixx not in scope) N/A(PA)
targetSystemstringExpected target system: csg, matrixx, ariaY (PR) N/A(PA)
Query Param
nametypedescriptionrequired (mandatory-Y, optional-N, Not applicable- N/A)
account_nostringTo retrieve the payments from a specific accountY(PR, PA)
startDatestringTo retrieve the payments performed after this dateN(PR, PA)
endDatestringTo retrieve the payments performed before this dateN(PR, PA)
paymentItem.referredTypestringTo retrieve the payments from a specific referredType
Possible values are: history, planDetails, plansByAcct, receipt, deposits, depositDetails, items, summary
N/A(PR) N(PA)
Data Model
Response Data Model
nametypedescriptionrequired (mandatory-Y, optional-N, Not applicable- N/A)
idstringUnique identifier of PaymentY(PR, PA)
descriptionstringText describing the contents of the paymentN(PR) Y(PA)
correlatorIdstringUnique identifier in the client for the payment in case it is needed to correlateN(PR) Y(PA)
statusstringStatus of the paymentN(PR) Y(PA)
statusDatedatetime or
string
Date when the status was recorded
Note for PA: This field type is string
N(PR) Y(PA)
namestringScreen name of the paymentN(PR) Y(PA)
paymentDatedatetime or
string
Date when the payment was performed
Note for PA: This field type is string
N(PR) Y(PA)
extendedCharacteristics[]arrayRepresents additional attributes of payment entityN(PR) N/A(PA)
extendedCharacteristics[].namestringname of the additional attributes (ex: "paymentDate", "procStatusCode")N(PR) N/A(PA)
extendedCharacteristics[].valuestringvalue of the additional attributes(ex: "2023-06-09", 100)N(PR) N/A(PA)
accountobjectAccount reference. A account may be a party account or a financial account.N(PR) Y(PA)
account.idstringUnique identifier of the accountN(PR) Y(PA)
account.@typestringWhen sub-classing, this defines the sub-class entity nameN(PR) N/A(PA)
account.namestringName of the accountN(PR) Y(PA)
account.descriptionstringDetailed description of the accountN/A(PR) Y(PA)
amountobjectA base / value business entity used to represent moneyN(PR) N/A(PA)
amount.valuenumberA positive floating point numberN(PR) N/A(PA)
amount.unitstringCurrency (ISO4217 norm uses 3 letters to define the currency)N(PR) N/A(PA)
amount.amountnumberA positive floating point numberN(PR) N/A(PA)
paymentMethodobjectlink to the resource that holds information about the payment mean used to complete the operationY(PR, PA )
paymentMethod.idstringUnique Identifier within the server for the payment method.N(PR) N/A(PA)
paymentMethod.@typestringWhen sub-classing, this defines the sub-class entity nameN(PR) Y(PA)
paymentMethod.detailsobjectDetails of payment methodN(PR) N/A(PA)
paymentMethod.details.typestringType of payment methodN(PR) N/A(PA)
paymentMethod.details.cardNumberstringCard NumberN(PR) N/A(PA)
paymentMethod.details.expirationDatestringCard Expiry DateN(PR) N/A(PA)
paymentItem[]arrayThe paymentItem is the result of lettering process. It enables to assign automatically or manually part of incoming payment amount to a billN(PR) Y(PA)
paymentItem[].totalAmountobjectA base / value business entity used to represent moneyN(PR) Y(PA)
paymentItem[].totalAmount.amountnumberA positive floating point numberN(PR) N/A(PA)
paymentItem[].totalAmount.valuenumberA positive floating point numberN/A(PR) Y(PA)
paymentItem[].itemobjectEntity reference schema to be use for all entityRef class.N(PR) Y(PA)
paymentItem[].item.idstringUnique identifier of a related entity.N(PR) N/A(PA)
paymentItem[].item.referredTypestringThe actual type of the target instance when needed for disambiguation.N(PR) N/A(PA)
paymentItem[].item.@referredTypestringThe actual type of the target instance when needed for disambiguation.N/A(PR) Y(PA)
itemobjectReference where to get more information about the entity with another API callN(PR) N/A(PA)
item.referredTypestringThe actual type of the target instance when needed for disambiguation.N(PR) N/A(PA)
item.idstringUnique identifier of a related entity.N(PR) N/A(PA)
refund[]arrayarray for the refund detailsN(PR) N/A(PA)
refund[].idstringRefunded id (unique) from matrixxN(PR) N/A(PA)
refund[].totalAmountobjectrefund amount detailsN(PR) N/A(PA)
refund[].totalAmount.valuenumberrefund amount valueN(PR) N/A(PA)
refund[].totalAmount.unitstringCurrency (ISO4217 norm uses 3 letters to define the currency)N(PR) N/A(PA)
refund[].statusstringstaus of the refund(ex: refunded)N(PR) N/A(PA)
refund[].refundDatedatetimeDate of the refundN(PR) N/A(PA)
refund[].@typestringWhen sub-classing, this defines the sub-class entity name(ex: "RefundRef")N(PR) N/A(PA)
totalAmountobjectA base / value business entity used to represent moneyN(PR) Y(PA)
totalAmount.valuenumberA positive floating point numberN(PR) Y(PA)
totalAmount.unitstringCurrency (ISO4217 norm uses 3 letters to define the currency)N(PR) N/A(PA)
totalAmount.amountnumberA positive floating point numberN(PR) N/A(PA)
taxAmountobjectA base / value business entity used to represent moneyN(PR) N/A(PA)
taxAmount.amountnumberA positive floating point numberN(PR) N/A(PA)
@typestringWhen sub-classing, this defines the sub-class entity nameN(PR) N/A(PA)
paymentItem subResource - dataModel
resource characteristic nametypedescriptionrequired(mandatory-Y, optional-N, Not applicable- N/A)examples
paymentstringThe actual type of the target instance when needed for disambiguation.Y(PA)PA: { "item": { "referredType": "payment"}}
depositstringThe actual type of the target instance when needed for disambiguation.Y(PA)PA: {"item": { "referredType": "deposit"}}
extendedCharacteristics subResource - dataModel
resource characteristic nametypedescriptionrequired(mandatory-Y, optional-N, Not applicable- N/A)examples
procStatusCodestringResponse code from payment processor (Braintree). Possible Values will be :1000(Approved), 4001(settlement_declined), 4000(settled), 81706(CVV is required), ARIA COMM 1 (voided payment), etc...N(PR) N/A(PA)PR: { "name": "procStatusCode", "value": "1000" }
paymentDatestringProcessor payment dateN(PR) N/A(PA)PR: { "name": "paymentDate", "value": "2024-02-13" }
procPaymentIdstringThe processor payment IDN(PR) N/A(PA)PR: { "name": "procPaymentId", "value": "bkh04029" }
paymentMethodNostringProcessor payment method numberN(PR) N/A(PA)PR: { "name": "paymentMethodNo", "value": "1" }
procStatusTextstringPayment processor status text is returned The possible payment status is either 'Approved or settled or Settlement Pending or External Payment or Cash Credit or Insufficient Funds or fail or {Unknown}N(PR) N/A(PA)PR: { "name": "procStatusText", "value": "Approved" }
Key considerations
PA Implementation
1. This implementation retrieves the payment history for FIXED, POSTPAID accounts.
2. To retrieve payment history for a specific duration, startDate and endDate queryParameters must be passed.
3. If the dates are not specified in queryParams, the API returns history of last one year by default.
4. Description field provides the billReferenceNumber.
5. statusDate field is the enteredDate in Liberate.
6. name field gives the name value which is sent during creating the payment (ThirdPartySource).
7. correlatorId field gives the correlatorId value which is sent during creating the payment (ThirdPartyPaymNo).
8. status possible values are "Returned" or "Success".
9. By default, payment history is retrieved if 'paymentItem.referredType' queryParam is not provided; if specified, it must be sent as "history"
10. For all the dateTime fields
   - Any datetime before 1908-04-22 will show offset -05:18
   - Any datetime on or after 1908-04-22 will show offset -05:00

Get Payment Plans

This API allows consumer to returns the list of payment plans on the account.

URL
https://[localhost]:[port]/dev/dxp-ux/dxp-ux/v1/{businessId}/payment
url Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit.Y
namevaluedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
Y
Query Param
nametypedescriptionrequired
account.idstringBAN-CAN ( client_acct_id )Y

cURL request

curl --location 'https://nonprod.esb.cloud.lla.com/dev/dxp-ux/dxp-ux/v1/PR/payment?account.id=DAVE2025062416' \
--header 'X-Correlation-ID: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92c2b' \
--header 'client_id: 784c9a6dd7ae49768816cab57fcf1fa1' \
--header 'client_secret: 187b259EB77441babbF611d2646C670d'

Response

In this section all the possible data structures received by the client at the moment of responding the method are defined.

Possible response success

This section defines all the possible data structures received by the client and that must be considered satisfactory at the time of responding to the method.

[ 200 ]

OK - get request processed successfully, response body contains an entity corresponding to the requested resource.

[
    {
        "id": "23", //AriaAssignedPaymentPlanNumber
        "status": "Active", //payment_plan_status
        "paymentItem": [
            {
                "item": {
                    "id": "23", //<client_payment_plan_id>
                    "name": "Dave Test" //payment_plan_name
                }
            },
            {
                "amount": {
                    "value": 1015.1,
                    "unit": "USD"
                },
                "item": {
                    "name": "InitialBalance"
                }
            },
            {
                "amount": {
                    "value": 1015.1,
                    "unit": "USD"
                },
                "item": {
                    "name": "RemainingBalance"
                }
            },
            {
                "amount": {
                    "value": 0,
                    "unit": "USD"
                },
                "item": {
                    "name": "PaidAmount"
                }
            }
        ],
        "paymentMethod": {
            "account": [
                {
                    "id": "2109150",
                    "name": "ClientBillingGroupId"
                },
                {
                    "id": "5859395",
                    "name": "AlignedPaymentPlanClientMasterPlanInstanceId"
                }
            ]
        },
        "extendedCharacteristic": [
            {
                "name": "PaymentPlanDescription",
                "value": "Dave Test"
            },
            {
                "name": "PaymentPlanCreateDate",
                "value": "2026-08-14"
            },
            {
                "name": "FirstPaymentPlanDueDate",
                "value": "2026-09-09"
            },
            {
                "name": "LastPaymentPlanDueDate",
                "value": "2026-11-09"
            },
            {
                "name": "PaymentPlanType",
                "value": 1
            },
            {
                "name": "PaymentPlanLength",
                "value": 3
            },
            {
                "name": "TransactionOnPaymentPlanList",
                "valueType": "array",
                "value": [
                    {
                        "transactionCreateDate": "2026-06-17 01:42:04",
                        "transactionId": 585141221,
                        "invoiceNo": 1216902637
                    },
                    {
                        "transactionCreateDate": "2026-06-17 01:42:04",
                        "transactionId": 585141222,
                        "invoiceNo": 1216902637
                    },
                    {
                        "transactionCreateDate": "2026-06-17 01:42:04",
                        "transactionId": 585141223,
                        "invoiceNo": 1216902637
                    },
                    {
                        "transactionCreateDate": "2026-06-17 01:42:04",
                        "transactionId": 585141224,
                        "invoiceNo": 1216902637
                    },
                    {
                        "transactionCreateDate": "2026-07-17 01:35:24",
                        "transactionId": 590822078,
                        "invoiceNo": 1217967920
                    },
                    {
                        "transactionCreateDate": "2026-07-17 01:35:24",
                        "transactionId": 590822079,
                        "invoiceNo": 1217967920
                    },
                    {
                        "transactionCreateDate": "2026-07-17 01:35:24",
                        "transactionId": 590822080,
                        "invoiceNo": 1217967920
                    },
                    {
                        "transactionCreateDate": "2026-07-17 01:35:24",
                        "transactionId": 590822081,
                        "invoiceNo": 1217967920
                    }
                ]
            }
        ],
        "@type": "Payment"
    }
]
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
idstringAria-assigned payment plan no.N
statusstringSpecifies the other status of payment plan (active, completed, or cancelled).N
paymentItemarrayN
paymentItem.itemobjectN
paymentItem.item.idstringClient-defined unique payment plan ID.N
paymentItem.item.namestringPayment plan name.N
paymentItem.amountobjectSpecifies the balance to be paid by the payment plan at time of payment plan creation.
Specifies the remaining balance to be paid by the payment plan at the time of the API call.
The paid amount of payment plan at the time of the API call.
N
paymentItem.amount.valuenumberContains the balance of either 'InitialBalance', 'RecurringAmount', or 'PaidAmountN
paymentItem.amount.unitstringCurrency (ISO4217 norm uses 3 letters to define the currency)N
paymentItem.@referredTypestringBalance differentiatorN
paymentMethodobjectHolds information about the payment plan accountsN
paymentMethod.accountarraylist of payment plan accountsN
paymentMethod.account.idstringunique account id
Please refer below 'paymentMethod account values' table for more details
N
paymentMethod.account.namestringname of the accountN
extendedCharacteristicarrayDescribes the characteristic of a payment planN
extendedCharacteristic.namestringName of the characteristicN
extendedCharacteristic.valueanyValue of the of the characteristicN
extendedCharacteristic.valueTypestringData type of the characteristicN
@typestringThis defines the sub-class entity name, in this case 'PaymentPlan'N
paymentMethod account values
paymentMethod account nametypedescriptionrequired
ClientBillingGroupIdstringClient-defined billing group ID.N
AlignedPaymentPlanClientMasterPlanInstanceIdstringThe client-defined unique identifier for master plan instance that will be used to communicate upcoming payment due. Mandatory when payment_plan_type = 0.N
extendedCharacteristic values
extendedCharacteristic nametypedescriptionrequired
PaymentPlanDescriptionstringPayment plan description.N
PaymentPlanCreateDatestringDate when payment plan created.N
FirstPaymentPlanDueDatestringThe date of the first payment plan will be due.N
LastPaymentPlanDueDatestringThe date of the last payment plan will be due.N
PaymentPlanTypenumberSpecifies the payment plan type for the account. Allowable values are: 0 - Aligned with an existing master plan instance anniversary statement or 1 - Independent, its own payment plan schedule and due dates.N
PaymentPlanLengthnumberSpecifies the length of payment plan. For payment_plan_type = 1, the input will be used jointly with payment_plan_interval. For payment_plan_type = 0, it is the number of MPI statements that the payment plan will be part of.N
TransactionOnPaymentPlanListarrayA list of transactions on a payment plan.
Please refer below 'transaction_on_payment_plan_list array values' table for more details
N
transaction_on_payment_plan_list array values
extendedCharacteristic nametypedescriptionrequired
transactionCreateDatestringThe creation datetime of this transaction.N
transactionIdnumberUnique transaction ID.N
invoiceNonumberThe Aria-assigned unique identifier for invoices.N

Possible response error

In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.

[ 400 ]

Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

{
  "errors" : [{
      "code" : 400,
      "message" : "The request is invalid or not properly formed.",
      "description" : "Malformed request syntax, invalid request message framing, or deceptive request routing."
    }]
}
[ 401 ]

Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.

{
  "errors" : [{
      "code" : 401,
      "message" : "The user could not be authenticated for this request.",
      "description" : "The request has not been applied because it lacks valid authentication credentials for the target resource"
    }]
}
[ 404 ]

Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

{
  "errors" : [{
      "code" : 404,
      "message" : "The request is invalid or not properly formed.",
      "description" : "The requested operation failed because a resource associated with the request could not be found."
    }]
}
[ 405 ]

Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.

{
    "errors": [{
            "code": 405,
             "message": "APIKIT:METHOD_NOT_ALLOWED",
             "description": "HTTP Method POST not allowed for : /{businessId}/payment"
        }]
}
[ 500 ]

Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.

{
  "errors" : [{
      "code" : 500,
      "message" : "Internal Server Error",
      "description": "The request failed due to an internal error"
    }]
}
[ 501 ]

Not implemented - indicates that the server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.

{
  "errors" : [{
      "code" : 501,
      "message" : "Not implemented",
      "description" : "Operation GET /payment for Business Id: xxxx not implemented"
    }]
  }

Reviews